//
//  CSNateRequestDelegate.h
//  CairnStory
//  www.cairnstory.com
//
//  Created by saturna on 11. 3. 25..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CSNateRequest.h"


@protocol CSNateRequestDelegate

@required
- (void)nateRequest:(CSNateRequest*)request
	didStartWithTag:(NSUInteger)nateTag;

// result는 nate open api response xml 또는 json
// - xml 인 경우 root element를 NSDictionary 행태로 추출한 CSXMLObject
// - json인 경우 NSDictionary or NSArray
- (void)nateRequest:(CSNateRequest*)request
  didSuccessWithTag:(NSUInteger)nateTag
	 withOutputType:(CSNateRequestOutputType)outputType
		 withResult:(id)result;

- (void)nateRequest:(CSNateRequest*)request
	 didFailWithTag:(NSUInteger)nateTag
		withMessage:(NSString*)alertMessage
		  withError:(NSError*)error;

- (void)nateRequest:(CSNateRequest*)request
   didFinishWithTag:(NSUInteger)nateTag;

@end
